<template>
  <div
    class="wg-item wg-switch wg-padding"
    :class="[item.label.labelPosition==='top'?'flex-column':'align-middle']"
    :style="item.style"
  >
    <div class="wg-title" :style="{width:item.label.labelWidth}">{{item.label.labelTitle}}</div>
    <label class="label">
      <input type="checkbox" class="wg-switch-input" v-model="item.value" style="display:none" />
      <span class="wg-switch-core"></span>
    </label>
  </div>
</template>

<script>
export default {
  props: {
    item: {
      type: Object,
      required: true
    }
  }
}
</script>